import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    Admin: null,
    Seat: null,
    x:null,
    y:null
  },
  mutations: {
    Login(state, Admin) {
      return state.Admin = Admin
    },
    SeatUp(state, seat) {
      return state.Seat = seat
    },
    SeatColUp(state, y) {
      return state.y = y
    },SeatRowUp(state, x) {
      return state.x = x
    }
  },
  actions: {},
  modules: {}
})